package com.yunkeji.config.init;

import com.yunkeji.common.msg.Push;
import com.yunkeji.common.msg.utils.BadWordDetectorUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * kmsg初始化
 *
 * @author 老张
 */
@Configuration
public class PushMessageConfig {
    @Value("${msg.host}")
    String host = "http://localhost";

    @PostConstruct
    public void PushMessageInit() {
        Push.init(host);
        BadWordDetectorUtils.CHECK_URL = host;
    }
}
